<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php $this->load->view('head'); ?>
</head>

<body>
	<?php $this->load->view('header_admin.php'); ?>
	
	<!-- Content Area -->
	<div class="wrapper-world content">
		<h1><span class="quantity link"><?php echo anchor('/companies', 'Companies'); ?></span> &raquo; <?php echo htmlspecialchars($company->name); ?> <span class="quantity link"><?php echo anchor('/companies/edit/'.$company->id, 'Edit'); ?></span></h1>
		
		<div class="job-listing">
			<div class="wrapper-world"> <!-- zaglaviq -->
				<div class="wrapper">
					<div class="job-id">User ID</div>
					<div class="job-details">Name</div>
					<div class="job-action">Action</div>
					<div class="clr"></div>
				</div>
			</div>
			
			<?php $c = 0; foreach ($company->users as $uinfo): ?>
			<div class="wrapper-world job-<?php echo (($c%2 == 0) ? "odd" : "even"); ?>">
				<div class="wrapper">
					<div class="job-id"><?php echo anchor('/users/edit/'.$uinfo->uid, $uinfo->user_id); ?></div>
					<div class="job-details"><?php echo anchor('/users/edit/'.$uinfo->uid, $uinfo->name); ?></div>
					<div class="job-action"><?php echo anchor_img('/companies/delUser/'.$uinfo->uid, 'title="Delete"', 'assets/images/icons/delete.png'); ?> <?php echo anchor_img('/viewuser/'.$uinfo->uid, 'title="View details"', 'assets/images/icons/view.png'); ?></div>
					<div class="clr"></div>
				</div>
			</div>
			<?php $c++; endforeach; ?>
		</div>
		
		<!--          -----------------------------------------------------------------------------          -->
		
	</div> <!-- end of wrapper-world and .content -->
	
	
		
	<div class="wrapper-world footer-top">
		<div class="wrapper"></div>	
	</div>
	
	<?php $this->load->view('footer'); ?>
</body>
</html>
